package com.nidu.demo.mail.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.mail.dto.MailAccountCO;
import com.nidu.demo.mail.mapper.dataobject.MailAccountDO;
import com.nidu.demo.mail.model.MailAccount;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface MailAccountConvertor extends BaseConvertor<MailAccountDO, MailAccount, MailAccountCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    MailAccountDO toDataObject(MailAccount mailAccount);

}
